package com.zygh.lz.entity.duty;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author lee
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "勤务模式",description = "勤务模式")
@TableName(value = "duty_mode")
public class DutyModel implements Serializable {
    @ApiModelProperty("主键id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("勤务模式编号")
    @TableField(value = "code")
    private Integer code;

    @ApiModelProperty("勤务模式名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty("最后修改时间")
    @TableField(value="last_time")
    private String lastTime;

    @TableField(exist = false)
    private Integer postId;

    @TableField(exist = false)
    private Integer pageNum;
    @TableField(exist = false)
    private Integer pageSize;
}
